package edu.gu.hajo.gcl.cmd.impl;

import edu.gu.hajo.gcl.interp.IInterpreter;

/**
 * TODO a lot compare string bolleans etc
 * @author hajo
 *
 */
public final class LessOpCmd extends AbstractCmd {
	
	public LessOpCmd(IInterpreter interp) {
		super(interp);
	}

	@Override
	public  void execute() {
		if (args.size() != 2) {
			throw new RuntimeException("< : Wrong # args");
		}

		boolean result = Integer.parseInt(args.get(0)) < Integer.parseInt(args
				.get(1));
		interp.setResult(String.valueOf(result));
	}

}
